import '../../constant/app_strings.dart';
import '../../utils/shared_preferences_util.dart';

class ClientService {
  //判断是否是第一次打开
 static Future<bool> isFirst() async {
    return  await SharedPreferencesUtil.getInstance()
          .getBool(AppStrings.IS_FIRST) ?? true;
  }

  //打开过了
 static Future<bool> open() async {
    return await await SharedPreferencesUtil.getInstance()
          .setBool(AppStrings.IS_FIRST, false);
  }
}